package com.wondertek.poms.dao.repo;

import com.wondertek.poms.dao.po.ChannelInfoPackage;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface IChannelInfoPackageDao extends JpaRepository<ChannelInfoPackage,Long> {

    List<ChannelInfoPackage> findAllByChannelId(String channelId);

    List<ChannelInfoPackage> findAllByChannelPackageId(Long packageId);

    void deleteByChannelPackageId(Long packageId);

    void deleteByChannelPackageIdAndAndChannelId(Long packageId,String channelId);
}
